<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        for (var apple = 1 ; apple < 100 ; apple++ ) {
            var pear = 100 - apple * 2,
                peach = apple;
            if (apple + pear + peach === 100 && 3 * apple + 2 * pear + peach === 200 && pear > 0){
                console.log(apple,pear,peach);
            }
        }
    </script>
</head>
<body>
    
</body>
</html>